home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 11 / Amiga Format AFCD11 (Feb 1997, Issue 95).iso / -readerstuff- / david_perks / requesters / browse.doc < prev    next >
Text File  |  1997-01-31  |  3KB  |  77 lines

  1. ArpBrowse version 1.1            Writen  in E by D.Perks 1994
  2. AslBrowse version 1.0
  3.  
  4. Use filerequester to launch program or select arguements.
  5.  
  6. Will launch program selected by file requester
  7. alternatively, provide program as arguement and
  8. select file to act on: eg     Browse ed    will bring up
  9. a file selector to choose a file to edit with ed.
  10. Defaults to current directory. else Browse prog DIR path
  11.  
  12. From Workbench edit info tooltypes ;
  13. PROG=progname  eg PROG=ed or  PROG=loadlib
  14. OUTPUT=window/file
  15.       eg OUTPUT=CLI:0/10/640/90/FR: enter to close
  16.       or OUTPUT=ram:outfile
  17. DIR=disk/directory  eg DIR=df0:s
  18.  
  19. HINTS (drive with care)
  20. From cli/shell
  21. Firstly, I suggest you rename the program so it has a shorter
  22. name, I call it fr, it doesn't take so long to type.
  23. If you can't remember the name or location of a program
  24. -enter <Browse>   this will put up a requester allowing you
  25. to search and launch your program.  Output will be sent to
  26. the cli/shell.  If its a command which doesn't provide quick
  27. feedback you might want to enter  <Browse run> which
  28. will give you back control of the cli.
  29. You could <run Browse> but this would leave browse active (it
  30. seems to use around 30K while open).
  31.               If you need to add a filename as the arguement
  32. to a command then enter <browse commandname> eg browse ed the
  33. chosen file will be added to your command name and executed.
  34. Path may be specified with DIR path. eg Browse ed DIR s:
  35.  
  36. From workbench
  37.               With no specified tooltypes Browse will simply
  38. launch the selected program.  The advantage is that it's
  39. quicker for a requester to look at different drawers than
  40. for workbench to open them.  Also all files are shown.
  41.               You can use the requester like a command line.
  42. Simply enter additional information at the start or end of
  43. the Drawer/File selection.  eg
  44.  
  45. Drawer  DF0:s     becomes ed DF0:s or even   copy DF0:s
  46. File    startup2          startup2           start#? ram:
  47.  
  48. Try it to see.  If Drawer is empty put the command at the
  49. start of File.
  50.  
  51.               You can choose a command to preload Browse
  52. by adding tool type PROG=progname in info (information).
  53. Select the Browse icon and then info from workbench menu bar.
  54. You can change the default directory DIR=disk/directory
  55. You can create an output file OUTPUT=file/window if you
  56. expect an answer from your command.
  57. The provided icon already contains these tooltypes.
  58. Just delete the ; at the start of the tooltype description to
  59. activate it and alter as required.
  60. Browse is around 2k in size so you could set up requesters for
  61. several different commands simply by making copies of browse
  62. under different names and with appropriate tool type
  63. specifications.
  64.  
  65. WHY?
  66. Initially I wanted a requester to select a file before
  67. entering ED.  Then I realized that any command requiring
  68. arguements could use the requester.  It could even be used
  69. to launch commands.  It's like the Wb2.0 Execute Command
  70. menu item except you can browse for the command/arguements.
  71. You will need arp.library in LIBS: for Browse
  72. or asl.library for aslbrowse.
  73. I wrote it in E because it's my favourite language.
  74.  
  75. Copyright remains with the author.
  76. Browse may be freely distributed.
  77.